package com.mars.app.wetchat;

import com.mars.app.base.BaseEntity;
import lombok.Data;

/**
 * Created by pengshuo on 2018/1/8 14:37
 * Description: js_code 转换成 session_key
 * Modified By:
 * Version:
 *
 * @author pengshuo
 */
@Data
public class WeChatIdentify extends BaseEntity{

    /** 用户唯一标识 */
    private String openid;

    /** 会话密钥 微信有效期为30天 */
    private String session_key;

    /** 用户在开放平台的唯一标识符 */
    private String unionid;

    /** 错误编号 */
    private String errcode;

    /** 错误信息 */
    private String errmsg;

/*
     正常返回的JSON数据包
     {
        "openid": "OPENID",
        "session_key": "SESSIONKEY",
        "unionid": "UNIONID"
     }
     错误时返回JSON数据包(示例为Code无效)
     {
        "errcode": 40029,
        "errmsg": "invalid code"
     }
*/

}
